.dp-mark-dialog__wrapper {
  --theme-background-color: rgba(2, 17, 28, 0.95);
  --theme-border-color: rgba(0, 99, 152, 1);
  --theme-header-title-color: rgba(255, 255, 255, 1);
  --theme-label-color: rgba(110, 134, 149, 1);

  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 6666 !important;

  .dp-mark-dialog {
    margin-top: 0 !important;
    background-color: var(--theme-background-color);
    border: 1px solid var(--theme-border-color);
    padding: 0;

    .el-dialog__header {
      height: 0.58rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-sizing: border-box;

      .el-dialog__title, .el-icon-close:before {
        color: var(--theme-header-title-color);
        text-shadow: 0 1px 3px #000000;
        font-size: 0.18rem;
      }

      .el-icon-close:before {
        font-size: 1.2vw;
      }

      .el-dialog__headerbtn {
        position: initial;
      }
    }

    .el-dialog__body {
      margin-left: 1px;
      box-sizing: border-box;
      border-top: 0;
      overflow: hidden;
      border-radius: 0 0 4px 4px;
      //max-height: calc(80vh - 0.58rem);

    }
  }
}

.el-message-box__wrapper {
  z-index: 6667 !important;
}

.el-image-viewer__wrapper {
  z-index: 6667 !important;

  .el-image-viewer__canvas {
    padding: 10px;
    box-sizing: border-box;
  }
}


.el-radio-group {
  margin-top: 0.05rem;

  .el-radio-button__inner {
    background: rgba(2, 123, 196, 0) !important;
    color: #2eb2fd;
    border-color: rgba(2, 123, 196, 0.5) !important;
  }

  .el-radio-button.is-active {
    .el-radio-button__inner {
      background: rgba(183, 205, 58, 0) !important;
      color: #fdf234;
      border-color: rgba(183, 205, 58, 0.5);
    }
  }
}

.el-popper {
  z-index: 8888 !important;
}


/* 设备信息*/
.device-dialog-info {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;

  p {
    white-space: nowrap;
    margin-right: 2vw;
    color: var(--theme-label-color);
    display: flex;
    align-items: center;
    line-height: 3vh;

    span {
      color: #FFFFFF;
      max-width: 15vw;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      display: inline-block;
    }
  }
}


.dp-mark-dialog__type {
  /*虫情相关弹框*/

  &.dp-mark-dialog-insect {
    .insect-siper-item {
      cursor: pointer;
      user-select: none;

      .insect-swiper-item__pic {
        height: 130px;
        position: relative;

        .create-time {
          position: absolute;
          left: 0;
          bottom: 0;
          width: 100%;
          background: rgba(0, 0, 0, 0.5);
          color: #fff;
          line-height: 2;
          font-size: 14px;
          text-align: center;
        }
      }

      .insect-swiper-item__info {
        font-size: 14px;
        line-height: 2;
        display: flex;
        justify-content: space-between;

        .info-num {
          color: #fff;
        }

        .info-more {
          font-size: 14px;
          color: #FFE8C9;
        }
      }
    }
  }

  // 土壤墒情相关弹框
  &.dp-mark-dialog-sq {
    .sensor-siper-item {
      cursor: pointer;
      user-select: none;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;

      .sensor-siper-item__value {
        width: 130px;
        height: 105px;
        background: url('./img/sensor-bg.png') no-repeat center center;
        background-size: 100% 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.9);
        font-weight: bold;


        .sensor-value {
          margin-bottom: 3px;
          font-size: 26px;
        }

        .sensor-unit {
          font-size: 14px;
        }
      }

      .sensor-siper-item__info {
        margin-top: 10px;

        .sensor-name {
          width: 1.2rem;
          background: rgba(249, 247, 244, 0.15);
          border-radius: 6px;
          font-size: 14px;
          font-weight: 400;
          color: #FFFFFF;
          line-height: 2;
          text-align: center;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;

        }
      }
    }

    .sensor-chart-container {
      padding: 20px 0;
      padding-bottom: 0;
      margin-top: 10px;

      .search-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
      }

      .chart-wraper {
        height: 35vh;
      }
    }
  }

  &.dp-mark-dialog-xy{
    .search-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
  }



  // 孢子相关弹框
  &.dp-mark-dialog-bz {
    .pic-list-wrapper {
      height: 4.8rem;
      overflow-y: auto;

      .pic-list {
        height: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 0.1rem;
        justify-content: center;

        .li-item {
          width: 2.1rem;
          height: 1.5rem;
          position: relative;

          img {
            width: 100%;
            height: 100%;
          }
        }

        .time {
          position: absolute;
          bottom: 0;
          left: 0;
          line-height: 2;
          background: rgba(0, 0, 0, 0.5);
          width: 100%;
          color: #fff;
          text-align: center;
          font-size: 0.13rem;
        }
      }
    }
  }

  // 监控相关弹框
  &.dp-mark-dialog-monitor {
    display: flex;
    height: 714px;

    .monitor-content-left {
      flex: 1;
      height: 100%;
      overflow: hidden;
    }

    .monitor-content-right {
      width: 3.2rem;
      height: 100%;
    }


    .video-main {
      height: 400px;
      margin-bottom: 25px;
    }

    .video-item {
      height: 150px;
      background-size: 100% 100% !important;
      position: relative;

      .camera-name {
        position: absolute;
        width: 100%;
        bottom: 0;
        height: 28px;
        justify-content: center;
        color: #ffe539;
        display: flex;
        align-items: center;
        background: rgba(0, 0, 0, 0.2);
      }

      > img {
        position: absolute;
        width: 40px;
        height: 40px;
        cursor: pointer;
        top: 50%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
      }
    }

    .active-video {
      border: 1px solid #ecaf04;
    }


    .monitor-content-right-tit {
      padding-left: 16px;
      color: #fff;
      line-height: 40px;
    }

    .monitor-list-content {
      width: 100%;
      height: 300px;
      overflow-y: auto;
    }

    .monitor-list-box {
      width: 100%;
      height: 40px;
      display: flex;
      align-items: center;
      cursor: pointer;
      text-indent: 34px;
      background: url(../../../../resources/img/qjs.png) no-repeat 8px center;
    }

    .monitor-list-box p {
      flex: 1;
      white-space: nowrap;
      text-indent: 34px;
      line-height: 24px;
      color: #fff;
      text-overflow: ellipsis;
      overflow: hidden;
    }

    .monitor-list-box span {
      display: block;
      width: 10px;
      height: 10px;
      background-color: #fff;
      border-radius: 50%;
      font-size: 50px;
      margin-left: 10px;
    }

    .monitor-list-box span.monitor-img-checked {
      background-color: #0dcfd6 !important;
      flex-shrink: 0;
    }

    .monitor-list-box span.monitor-img-loading {
      background-color: #e4e708 !important;
    }

    .monitor-list-box span.monitor-img-error {
      background-color: #ee1d0e !important;
    }

    .ctrl-top-box {
      width: 100%;
      height: 100px;
      display: flex;
      justify-content: space-between;
      padding: 0 16px;
      box-sizing: border-box;
    }

    .ctrl-top-box .ctrl-top-box-left {
      width: 100px;
      height: 100%;
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      grid-template-rows: 1fr 1fr 1fr;
    }

    .ctrl-top-box-left p {
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 20px;
      font-weight: 600;
    }

    .ctrl-top-box-left p:hover, .ctrl-top-box-right p:hover {
      color: #01EAFE;
    }

    .ctrl-top-box-left p:nth-child(1) {
      transform: rotate(-45deg);
    }

    .ctrl-top-box-left p:nth-child(3) {
      transform: rotate(45deg);
    }

    .ctrl-top-box-left p:nth-child(7) {
      transform: rotate(45deg);
    }

    .ctrl-top-box-left p:nth-child(9) {
      transform: rotate(-45deg);
    }

    .ctrl-top-box-right {
      width: 100px;
      height: 100%;
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 1fr 1fr;
    }

    .ctrl-top-box-right p {
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 24px;
      font-weight: 600;
    }

    .ctrl-top-box-right p i {
      font-weight: 500;
    }

    .ctrl-title-box {
      width: 100%;
      height: 28px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
      padding: 0 16px;
      box-sizing: border-box;
      background-color: rgba(255, 255, 255, 0.1);
    }

    .ctrl-title-box i {
      font-size: 16px;
      cursor: pointer;
    }

    .ctrl-title-box i:hover {
      color: #01EAFE;
    }

    .ctrl-bottom-box {
      height: 200px;
      min-height: 0;
      padding: 10px 16px;
      box-sizing: border-box;
      overflow: auto;
      font-size: 14px;
    }

    .ctrl-bottom-box .ctrl-content-box {
      width: 100%;
      height: 30px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .ctrl-bottom-box .ctrl-content-box i {
      font-size: 14px;
      margin-left: 10px;
      cursor: pointer;
    }

    .no-data-t {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }


  }


}

// 弹框中区域组件
.dp-dialog-section {
  .left {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .name {
      font-size: 16px;
      font-weight: bold;
      color: #F7E1C3;;
      filter: hue-rotate(180deg);

      &::before {
        content: '';
        display: inline-block;
        border-radius: 2px;
        margin-right: 0.5vw;
        width: 24px;
        height: 16px;
        background: url('./img/section-before.png') no-repeat center center;
        background-size: 100% 100%;
      }

      &::after {
        content: '';
        display: inline-block;
        border-radius: 2px;
        margin-right: 0.5vw;
        width: 130px;
        height: 5px;
        background: url('./img/section-after.png') no-repeat center center;
        background-size: 100% 100%;
        margin-left: 14px;
      }
    }
  }

  .dialog-section__content {
    padding: 1vw 0.5vw 0;
  }
}

// 缺省暂无数据
.dp-no-data {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;

  img {
    width: 20%;
    max-width: 1.2rem;
    height: auto;
  }
}

.dp-swiper {
  display: flex;
  align-items: center;


  .swiper {
    flex: 1;
  }

  .swiper-btn {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: hue-rotate(120deg);

    &.swiper-button-disabled {
      opacity: 0.6;
    }

    img {
      width: 35px;
      height: 35px;
    }
  }
}

.legend-list-konvas {
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: center;
  width: 100%;
  color: #fff;
  justify-content: center;
  margin: 10px 0;

  .li-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 10px;

    .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      margin-right: 3px;
    }
  }
}

.el-loading-mask {
  background-color: rgba(255, 255, 255, 0.05);

  .el-loading-spinner .path {
    stroke: var(--primary-background-color)
  }
}


